package com.laot.searchManage.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.laot.searchManage.mapper.NoticeBoardMapper;
import org.laot.searchManage.entry.NoticeBoard;
import org.laot.searchManage.service.INoticeBoardService;
import org.laot.searchManage.vo.NoticeBoardVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
* @author laoT
* @description 针对表【notice_board(公告栏设置表)】的数据库操作Service实现
* @createDate 2024-01-27 23:26:14
*/
@Service
public class INoticeBoardServiceImpl extends ServiceImpl<NoticeBoardMapper, NoticeBoard>
    implements INoticeBoardService {
    @Resource
    private NoticeBoardMapper noticeBoardMapper;

    @Override
    public void updateContent(String content, String userName) {
        noticeBoardMapper.updateContent(content,userName);
    }

    @Override
    public NoticeBoardVo getContent() {
        return noticeBoardMapper.getContent();
    }

    @Override
    public void updateStatus(Integer status, String userName) {
        noticeBoardMapper.updateStatus(status,userName);
    }
}




